home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / treiber / drucker / oki / 400 / 400e / winnt / 400ent35.exe / PRINTER.INF < prev    next >
INI File  |  1995-01-22  |  11KB  |  288 lines

  1. [Identification]
  2.     OptionType = PRINTER
  3. [Options]
  4. "OL400 E"                                    = rasddui,  ol400e,  rasdd
  5. [Identify]
  6.     read-syms Identification
  7.     set Status     = STATUS_SUCCESSFUL
  8.     set Identifier = $(OptionType)
  9.     set Media      = #("Source Media Descriptions", 1, 1)
  10.     Return $(Status) $(Identifier) $(Media)
  11. [ReturnOptions]
  12.     set Status        = STATUS_FAILED
  13.     set OptionList     = {}
  14.     set OptionTextList = {}
  15.     set LanguageList = ^(LanguagesSupported, 1)
  16.     Ifcontains(i) $($0) in $(LanguageList)
  17.         goto returnoptions
  18.     else
  19.         set Status = STATUS_NOLANGUAGE
  20.         goto finish_ReturnOptions
  21.     endif
  22. returnoptions = +
  23.     set OptionList     = ^(Options, 0)
  24.     set OptionTextList = ^(OptionsText$($0), 1)
  25.     set Status         = STATUS_SUCCESSFUL
  26. finish_ReturnOptions = +
  27.     Return $(Status) $(OptionList) $(OptionTextList)
  28. [InstallOption]
  29.     set Status   = STATUS_FAILED
  30.     set Option   = $($1)
  31.     set SrcDir   = $($2)
  32.     set AddCopy  = $($3)
  33.     set DoCopy   = $($4)
  34.     set DoConfig = $($5)
  35.     set LanguageList = ^(LanguagesSupported, 1)
  36.     Ifcontains(i) $($0) in $(LanguageList)
  37.     else
  38.         set Status = STATUS_NOLANGUAGE
  39.         goto finish_InstallOption
  40.     endif
  41.     read-syms Strings$($0)
  42.     set OptionList = ^(Options, 0)
  43.     ifcontains $(Option) in $(OptionList)
  44.     else
  45.         goto finish_InstallOption
  46.     endif
  47.     set OptionList = ""
  48.     set ConfigOption = #(Options, $(Option), 1)
  49.     set DataOption   = #(Options, $(Option), 2)
  50.     set DriverOption = #(Options, $(Option), 3)
  51. installtheoption = +
  52.     ifstr(i) $(AddCopy) == "YES"
  53.         install Install-AddCopyOption
  54.         ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  55.             Debug-Output "Adding video files to copy list failed"
  56.             goto finish_InstallOption
  57.         endif
  58.     endif
  59.     ifstr(i) $(DoCopy) == "YES"
  60.         read-syms ProgressCopy$($0)
  61.         install Install-DoCopyOption
  62.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  63.             Debug-Output "Copying files failed"
  64.             goto finish_InstallOption
  65.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  66.             set Status = STATUS_USERCANCEL
  67.             goto finish_InstallOption
  68.         endif
  69.     endif
  70.     ifstr(i) $(DoConfig) == "YES"
  71.         set DriverPath      = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterDriver, $(DriverOption), 2)
  72.         set DataFilePath    = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterData,   $(DataOption),   2)
  73.         set ConfigFilePath  = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterConfig, $(ConfigOption), 2)
  74.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DriverPath)
  75.         ifstr(i) $(STATUS) == YES
  76.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DataFilePath)
  77.             ifstr(i) $(STATUS) == YES
  78.                 LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(ConfigFilePath)
  79.             endif
  80.         endif
  81.         ifstr(i) $(STATUS) == NO
  82.             set OptionText = #(OptionsText$($0), $(Option), 1)
  83.             shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(OptionText)$(String5)
  84.             Debug-Output "Copying printer files failed"
  85.             goto finish_InstallOption
  86.         endif
  87.         install Install-Configure
  88.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  89.             Debug-Output "Installing printer driver failed"
  90.             goto finish_InstallOption
  91.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  92.             set Status = STATUS_USERCANCEL
  93.             goto finish_InstallOption
  94.         endif
  95.         ifstr(i) $(STATUS) != "ADDED"
  96.             set OptionText = #(OptionsText$($0), $(Option), 1)
  97.             ifstr(i) $(STATUS) == "PRESENT"
  98.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
  99.                 set Status = STATUS_SUCCESSFUL
  100.             else-ifstr(i) $(STATUS) == "DENIED"
  101.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
  102.             else
  103.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
  104.             endif
  105.             goto finish_InstallOption
  106.         endif
  107.     endif
  108.     set Status = STATUS_SUCCESSFUL
  109. finish_InstallOption = +
  110.     Return $(Status)
  111. [Install-AddCopyOption]
  112.     set STF_VITAL = ""
  113.     set STF_OVERWRITE   = "VERIFYSOURCEOLDER"
  114.     AddSectionKeyFileToCopyList   Files-PrinterConfig          +
  115.                                   $(ConfigOption)              +
  116.                                   $(SrcDir)                    +
  117.                                   $(!STF_PRNDRIVERPATH)
  118.     AddSectionKeyFileToCopyList   Files-PrinterData            +
  119.                                   $(DataOption)                +
  120.                                   $(SrcDir)                    +
  121.                                   $(!STF_PRNDRIVERPATH)
  122.     AddSectionKeyFileToCopyList   Files-PrinterDriver          +
  123.                                   $(DriverOption)              +
  124.                                   $(SrcDir)                    +
  125.                                   $(!STF_PRNDRIVERPATH)
  126.     AddSectionKeyFileToCopyList   Files-PrinterDriverHelp      +
  127.                                   $(DriverOption)              +
  128.                                   $(SrcDir)                    +
  129.                                   $(!STF_PRNDRIVERPATH)
  130.     exit
  131. [Install-DoCopyOption]
  132.     CopyFilesInCopyList
  133.     exit
  134. [Install-Configure]
  135.     set Model       = $(Option)
  136.     set Driver      = #(Files-PrinterDriver, $(DriverOption), 2)
  137.     set DataFile    = #(Files-PrinterData,   $(DataOption),   2)
  138.     set ConfigFile  = #(Files-PrinterConfig, $(ConfigOption), 2)
  139.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterDriver   +
  140.                                                $(Model)            +
  141.                                                $(!STF_PRNENVIRONM) +
  142.                                                $(Driver)           +
  143.                                                $(DataFile)         +
  144.                                                $(ConfigFile)       +
  145.                                                $(!STF_PRINTSERVER)
  146.     exit
  147. [ExternalInstallOption]
  148.     Set !G:DebugOutputControl = 0
  149.     set Exit_Code    = $(!SETUP_ERROR_GENERAL)
  150.     set DrivesToFree = {}
  151.     install LoadSetupLibrary
  152.     ifstr(i)      $(STF_LANGUAGE)  == ""
  153.         goto end
  154.     else-ifstr(i) $(OPTION)        == ""
  155.         goto end
  156.     else-ifstr(i) $(ADDCOPY)       == ""
  157.         goto end
  158.     else-ifstr(i) $(DOCOPY)        == ""
  159.         goto end
  160.     else-ifstr(i) $(DOCONFIG)      == ""
  161.         goto end
  162.     endif
  163.     read-syms PlatformID
  164.     read-syms ProductType
  165.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  166.         set STF_PRNPLATFORM = "w32x86"
  167.         set STF_PRNENVIRONM = "Windows NT x86"
  168.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
  169.         set STF_PRNPLATFORM = "w32mips"
  170.         set STF_PRNENVIRONM = "Windows NT R4000"
  171.     else
  172.         goto end
  173.     endif
  174.     read-syms UiVars
  175.     detect    UiVars
  176.     read-syms Strings$(STF_LANGUAGE)
  177.     ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
  178.         goto skip_asksource
  179.     endif
  180.     set STF_SRCDIR = A:\
  181.     shell "registry.inf" GetNTSource
  182.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  183.     else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  184.     else
  185.         set STF_SRCDIR = $($R1)
  186.     endif
  187.     shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
  188.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  189.         Debug-Output "shelling DoAskSource failed"
  190.         goto end
  191.     endif
  192.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  193.         set STF_SRCDIR  = $($R1)
  194.         ifstr(i) $($R2) != ""
  195.             set DrivesToFree = >($(DrivesToFree), $($R2))
  196.         endif
  197.     else
  198.         goto end
  199.     endif
  200. skip_asksource = +
  201.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNDRIVERPATH)
  202.     ifstr(i) $(IsFullPath) == "NO"
  203.         LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNDRIVERPATH)
  204.         ifstr(i) $(STATUS) == "ERROR"
  205.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  206.             goto end
  207.         else-ifstr(i) $(STATUS) == "NOT-UNC"
  208.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  209.             goto end
  210.         else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  211.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  212.             goto end
  213.         else
  214.             set STF_PRNDRIVERPATH = $(STATUS)
  215.         endif
  216.     endif
  217.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  218.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  219.         Debug-Output "Execing InstallOption failed"
  220.         goto end
  221.     endif
  222.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  223.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  224.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  225.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  226.     endif
  227. end =+
  228.     ForListDo $(DrivesToFree)
  229.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  230.     EndForListDo
  231.     install   FreeSetupLibrary
  232.     exit
  233. [LoadSetupLibrary]
  234.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  235.     exit
  236. [FreeSetupLibrary]
  237.     FreeLibrary $(!LIBHANDLE)
  238.     exit
  239. [PlatformID]
  240.     PlatformID_I386 = I386
  241.     PlatformID_Mips = Mips
  242. [UiVars]
  243.     STF_CONTROLSET     = CurrentControlSet
  244.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  245.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  246.     STF_PRNDRIVERPATH  = "" ? $(!LIBHANDLE) GetPrinterDriverDir $(!STF_PRINTSERVER) $(!STF_PRNENVIRONM)
  247. [Source Media Descriptions]
  248.     1  = "Windows NT Setup Disk #1"  , TAGFILE = disk1
  249.     2  = "Windows NT Setup CD-ROM Disk"  , TAGFILE = disk2
  250. [ProductType]
  251. STF_PRODUCT  = Winnt
  252. STF_PLATFORM = I386
  253. [Files-PrinterConfig]
  254. pscrptui = 2,PSCRPTUI.DLL , SIZE=285184
  255. rasddui = 2,RASDDUI.DLL , SIZE=67856
  256. [Files-PrinterData]
  257. ol400e = 2,ol400e.DLL , SIZE=111104
  258. [Files-PrinterDriver]
  259. pscript = 2,PSCRIPT.DLL , SIZE=310784
  260. rasdd = 2,RASDD.DLL , SIZE=72976
  261. [Files-PrinterDriverHelp]
  262. pscript = 2,PSCRIPT.HLP , SIZE=38400
  263. rasdd = 2,RASDDUI.HLP , SIZE=33679
  264. [LanguagesSupported]
  265.     ENG
  266. [OptionsTextENG]
  267. "OL400 E"                                    = "OL400 E"
  268. [StringsENG]
  269.     String1 = "The printer model "
  270.     String2 = " is already installed."
  271.     String3 = "Failed to connect to the print server."
  272.     String4 = "The driver files for the printer model "
  273.     String5 = " couldn't be copied.  Failed to install the printer model."
  274.     String6 = "Access is denied. You must be logged on as a member of the Administrators "+
  275.               "group to carry out this operation."
  276.     String7 = " could not be installed."
  277. [ProgressCopyENG]
  278.     ProCaption   = "Windows NT Setup"
  279.     ProCancel    = "Cancel"
  280.     ProCancelMsg = "Windows NT is not correcly installed.  Are you sure you want "+
  281.                    "to cancel copying files?"
  282.     ProCancelCap = "Setup Message"
  283.     ProText1     = "Copying:"
  284.     ProText2     = "To:"
  285.  
  286.  
  287.  
  288.